<template>
  <div>

    <el-row type="flex" justify="space-between">

      <el-col v-if="showBefore" class="before">
        <slot name="before" />
      </el-col>

      <el-col>
        <el-row type="flex" justify="end">
          <!-- <el-input v-model="input" placeholder="请输入关键字" class="input-with-select" />
          <el-button>筛选</el-button> -->
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
    <div class="horizontal" />

  </div>
</template>

<script>
export default {
  props: {
    showBefore: {
      type: Boolean,
      default: true
    },
    showAfter: {
      type: Boolean,
      default: true
    }
  }

}
</script>

<style lang="scss" scoped>
.before{
    display: inline-block;
}

.el-card{
    margin: 20px;

}
.horizontal{
    display: block;
    height: 1px;
    width: 100%;
    margin: 24px 0;
    background-color: #dcdfe6;
}
</style>
